package com.cm.springcloud.service.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("service2")
public class ServiceController {
	
	@Value("${server.port}")
    private String serverPort;
	
	@RequestMapping("http1")
	public String service() {
		return "service2:"+serverPort+"http1返回";
	}
}
